package com.lleice.web.controller.business;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.lleice.common.annotation.Permission;
import com.lleice.common.annotation.RequestLog;
import com.lleice.service.entity.business.BusinessDatascopeExample;
import com.lleice.service.qo.business.DataScopeTestQo;
import com.lleice.service.service.business.IBusinessDatascopeExampleService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * <p>
 * 业务相关接口
 * </p>
 *
 * @author lizihao
 * @since 2020-11-19
 */
@Api(tags = {"业务相关接口"})
@RestController
@RequestMapping("/base/business")
public class BusinessDatascopeExampleController {

	@Autowired
	private IBusinessDatascopeExampleService iBusinessDatascopeExampleService;
	
	@ApiOperation(value = "测试数据权限")
	@Permission
	@RequestLog
    @RequestMapping(value = "/testDataScope", method = RequestMethod.POST)
	public List<BusinessDatascopeExample> testDataScope(@RequestBody DataScopeTestQo req) throws Exception{
	 return iBusinessDatascopeExampleService.getList(req);
 }
}
